import org.apache.commons.io.FileUtils;

import java.io.*;

/**
 * @Author: 李佳芬
 * @Description: TODO
 * @DateTime: 2023/4/1 16:45
 **/
public class test01 {
    public static void main(String[] args) {

        File file = new File("F:\\桌面\\音乐\\KugouMusic\\林俊杰 - 她说.kgm");
        try {
            byte[] bytes = FileUtils.readFileToByteArray(file);
            FileOutputStream fileOutputStream  = new FileOutputStream("F:\\桌面\\音乐\\他说.mp3");
            fileOutputStream.write(bytes);
            System.out.println(bytes);
           fileOutputStream.close();
        } catch (IOException e) {
            e.printStackTrace();
        }

    }


}
